package de.hci.mid.socialmap.entities;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

//import org.osmdroid.util.GeoPoint;


/**
 * @author Dome
 * 
 */
@Entity
@Table(name = "EVENTS")
public class Event implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	private int id;

	private String name;
	private String macid;
	@Temporal(TemporalType.TIMESTAMP)
	private Date start;
	@Temporal(TemporalType.TIMESTAMP)
	private Date end;
	private String cords;
	private String description;
	private List<String> categories;
	
	@Temporal(TemporalType.TIMESTAMP)
	private Date created;
	@Temporal(TemporalType.TIMESTAMP)
	private Date edited;
	@Temporal(TemporalType.TIMESTAMP)
	private Date deleted;


	public Event() {

	}

	
	/**
	 * @param name
	 * @param macid
	 * @param start
	 * @param end
	 * @param cords
	 * @param description
	 * @param kategories
	 */
	public Event(String name, String macid, Date start, Date end, String cords, String description, List<String> categories ) {

		this.name = name;
		this.macid = macid;
		this.start = start;
		this.end = end;
		this.cords = cords;
		this.description = description;
		this.categories = categories;
		this.created = new Date();
		this.edited = new Date();
		
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getMacid() {
		return macid;
	}

	public void setMacid(String macid) {
		this.macid = macid;
	}

	public Date getStart() {
		return start;
	}

	public void setStart(Date start) {
		this.start = start;
	}

	public Date getEnd() {
		return end;
	}

	public void setEnd(Date end) {
		this.end = end;
	}

	public String getCords() {
		return cords;
	}

	public void setCords(String cords) {
		this.cords = cords;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public List<String> getCategories() {
		return categories;
	}

	public void setCategories(List<String> categories) {
		this.categories = categories;
	}

	public Date getCreated() {
		return created;
	}

	public void setCreated(Date created) {
		this.created = created;
	}

	public Date getEdited() {
		return edited;
	}

	public void setEdited(Date edited) {
		this.edited = edited;
	}


	public Date getDeleted() {
		return deleted;
	}


	public void setDeleted(Date deleted) {
		this.deleted = deleted;
	}
	
	
	
}
